import time
from selenium import webdriver
from selenium.webdriver.common.by import By

driver = webdriver.Chrome()
driver.get('https://www.baidu.com')
js = '1>2?alert("干的好"):alert("彳亍")'
time.sleep(3)
driver.execute_script(js)
time.sleep(2)


